﻿namespace Quail.Silverlight
{
    /// <summary>
    /// Wraps The silverlight text block
    /// </summary>
    public class SlvTextBlock : SlvControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SlvTextBlock"/> class.
        /// </summary>
        public SlvTextBlock()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SlvTextBlock"/> class.
        /// </summary>
        /// <param name="container">The container for the control.</param>
        /// <param name="selector">The selector.</param>
        public SlvTextBlock(SlvControlContainer container, string selector)
            : base(container, selector)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SlvTextBlock"/> class.
        /// </summary>
        /// <param name="control">The control.</param>
        public SlvTextBlock(SlvControl control)
            : base(control)
        {
        }

        /// <summary>
        /// Gets the text.
        /// </summary>
        /// <value>The text.</value>
        public string Value
        {
            get
            {
                return GetPropertyValue("Text");
            }
        }
    }
}
